-- Autocmds are automatically loaded on the VimEnter event
-- Default autocmds that are always set: https://gitcode.com/Cangjie-SIG/CJ-NVIM/blob/main/nvim/lua/config/options.lua

-- Cangjie SDK HOME
-- 注意windows和linux的区别
if vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 then
    vim.g.CANGJIE_HOME = vim.env.CANGJIE_HOME or "d:\\cangjie"
else    
    vim.g.CANGJIE_HOME = vim.env.CANGJIE_HOME or "/usr/local/cangjie"
end

vim.g.enable_log_cangjie_lsp = true

vim.g.port_cangjie_debugger_server = 58920
